<?php get_header(); ?>
		<div id="leftbox">
        	<div class="last_beans">
            <h2>son eklenen baklalar</h2>
            <?php if($son_baklalar): ?>
			<?php foreach($son_baklalar as $bakla): ?>
			<?php $bakla->tarih = explode(" ",$bakla->tarih); ?>
			<?php $answer = ($bakla->cozulme_durumu == 0 ? "" : "_answered"); ?>
                <div class="bean_item">
                	<div class="left">
                    	<div class="answer_count<?php echo $answer; ?>"><div class="count"><?php echo $bakla->cevap_sayisi; ?></div><div class="text">cevap</div></div>
                        <div class="answer_button<?php echo $answer; ?>"><a href="#">cevapla!</a></div>
                    </div>
                	<div class="right">
                    	<div class="title<?php echo $answer; ?>"><a href="<?php echo bakla_url($bakla->slug); ?>"><?php echo $bakla->baslik; ?></a></div>
                    	<div class="info<?php echo $answer; ?>"><a href="#"><?php echo iddenKadi($bakla->uye_id); ?></a> tarafından <span><?php echo $bakla->tarih[0]; ?></span> tarihinde <span><?php echo $bakla->tarih[1]; ?></span> sularında yazılmış.</div>
                        <div class="content">
                        	<?php echo word_limiter($bakla->icerik,10); ?>
                        </div>
                        <?php if(uye_girdi()): ?>
                        <div class="links">
                        	<a href="#"><img src="<?php echo base_url(); ?>media/images/share<?php echo $answer; ?>.jpg" /></a>
                            <a href="#"><img src="<?php echo base_url(); ?>media/images/follow<?php echo $answer; ?>.jpg" /></a>
                        </div>
                        <?php endif; ?>
                    </div>
                    <div class="clearer"></div>
                </div>
                <div class="seperator"></div>
			<?php endforeach; ?>
			<?php else: ?>
				<div class="error">Hiç bakla eklenmemiş.</div>
			<?php endif; ?>
			</div>
        	<div class="last_beans">
            	<h2>en çok merak edilenler</h2>
            <?php if($merak_edilen_baklalar): ?>
			<?php foreach($merak_edilen_baklalar as $bakla): ?>
			<?php $bakla->tarih = explode(" ",$bakla->tarih); ?>
			<?php $answer = ($bakla->cozulme_durumu == 0 ? "" : "_answered"); ?>
                <div class="bean_item">
                	<div class="left">
                    	<div class="answer_count<?php echo $answer; ?>"><div class="count"><?php echo $bakla->cevap_sayisi; ?></div><div class="text">cevap</div></div>
                        <div class="answer_button<?php echo $answer; ?>"><a href="#">cevapla!</a></div>
                    </div>
                	<div class="right">
                    	<div class="title<?php echo $answer; ?>"><a href="<?php echo bakla_url($bakla->slug); ?>"><?php echo $bakla->baslik; ?></a></div>
                    	<div class="info<?php echo $answer; ?>"><a href="#"><?php echo iddenKadi($bakla->uye_id); ?></a> tarafından <span><?php echo $bakla->tarih[0]; ?></span> tarihinde <span><?php echo $bakla->tarih[1]; ?></span> sularında yazılmış.</div>
                        <div class="content">
                        	<?php echo word_limiter($bakla->icerik,10); ?>
                        </div>
                        <?php if(uye_girdi()): ?>
                        <div class="links">
                        	<a href="#"><img src="<?php echo base_url(); ?>media/images/share<?php echo $answer; ?>.jpg" /></a>
                            <a href="#"><img src="<?php echo base_url(); ?>media/images/follow<?php echo $answer; ?>.jpg" /></a>
                        </div>
                        <?php endif; ?>
                    </div>
                    <div class="clearer"></div>
                </div>
                <div class="seperator"></div>
			<?php endforeach; ?>
			<?php else: ?>
				<div class="error">Hiç bakla eklenmemiş.</div>
			<?php endif; ?>
            </div>
        </div>
	
<?php get_sidebar(); ?>
<?php get_footer(); ?>


